package cn.edu.sjtu.spinning.service;

import cn.edu.sjtu.spinning.domain.Task;
import cn.edu.sjtu.spinning.dto.StateResponse;
import cn.edu.sjtu.spinning.dto.TaskInput;

import java.util.List;
import java.util.Map;

public interface SpinningService {

  boolean addTaskToQueue(TaskInput task);

  StateResponse queryECNState();

  StateResponse queryTaskState(String processId, String taskId);

  Map<Integer, List<Task>> retTasksPool();
}
